package org.chromium.chrome.browser.ntp;


import org.chromium.ehrome.browser.BuildConfig;

import java.util.List;

public class ConfigBean {


    /**
     * adsName : Ehrome
     * shareTitle : 最新电影免费在线看
     * shareContent : Ehrome浏览器：免费看最新电影、连续剧，免费听VIP音乐，在家兼职挣外快，领取各大平台隐藏优惠券。
     * shareIconUrl : https://gitee.com/apple314507871/tupianku/raw/master/share_logo.png
     * mainUrl : http://www.firefox-lite.com/
     * adsTimes : 1
     * ads : [{"adsImageUrl":"http://www.firefox-lite.com/index.php/1-ads","redirectUrl":"http://www.firefox-lite.com/index.php/1-redirect"},{"adsImageUrl":"http://www.firefox-lite.com/index.php/2-ads","redirectUrl":"http://www.firefox-lite.com/index.php/2-redirect"},{"adsImageUrl":"http://www.firefox-lite.com/index.php/3-ads","redirectUrl":"http://www.firefox-lite.com/index.php/3-redirect"},{"adsImageUrl":"http://www.firefox-lite.com/index.php/4-ads","redirectUrl":"http://www.firefox-lite.com/index.php/4-redirect"},{"adsImageUrl":"http://www.firefox-lite.com/index.php/5-ads","redirectUrl":"http://www.firefox-lite.com/index.php/5-redirect"}]
     * topSites : [{"url":"http://www.firefox-lite.com/index.php/1-2","title":"热映电影","favicon":"ic_1.png","viewCount":1},{"url":"http://www.firefox-lite.com/index.php/2-2","title":"VIP连续剧","favicon":"ic_2.png","viewCount":2},{"url":"http://www.firefox-lite.com/index.php/3-2","title":"各平台隐藏优惠券","favicon":"ic_3.png","viewCount":3},{"url":"http://www.firefox-lite.com/index.php/4-2","title":"分享Ehrome","favicon":"ic_4.png","viewCount":4},{"url":"http://www.firefox-lite.com/index.php/5-2","title":"挣钱秘籍","favicon":"ic_5.png","viewCount":5},{"url":"http://www.firefox-lite.com/index.php/6-2","title":"宝妈、学生兼职","favicon":"ic_6.png","viewCount":6},{"url":"http://www.firefox-lite.com/index.php/7-2","title":"VIP Music","favicon":"ic_7.png","viewCount":7},{"url":"http://www.firefox-lite.com/index.php/8-2","title":"网站导航","favicon":"ic_8.png","viewCount":8}]
     */

    private String adsName;
    private String adsSupport;
    private String shareTitle;
    private String shareContent;
    private String shareIconUrl;
    private String mainUrl;
    private String address;
    private String QQ;
    private int adsTimes;
    private List<AdsBean> ads;
    private List<TopSitesBean> topSites;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public String getAdsSupport() {
        return adsSupport;
    }

    public void setAdsSupport(String adsSupport) {
        this.adsSupport = adsSupport;
    }

    public String getAdsName() {
        return adsName;
    }

    public void setAdsName(String adsName) {
        this.adsName = adsName;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public String getShareIconUrl() {
        return shareIconUrl.trim();
    }

    public void setShareIconUrl(String shareIconUrl) {
        this.shareIconUrl = shareIconUrl;
    }

    public String getMainUrl() {
        return mainUrl.trim();
    }

    public void setMainUrl(String mainUrl) {
        this.mainUrl = mainUrl;
    }

    public int getAdsTimes() {
        return adsTimes;
    }

    public void setAdsTimes(int adsTimes) {
        this.adsTimes = adsTimes;
    }

    public List<AdsBean> getAds() {
        return ads;
    }

    public void setAds(List<AdsBean> ads) {
        this.ads = ads;
    }

    public List<TopSitesBean> getTopSites() {
        return topSites;
    }

    public void setTopSites(List<TopSitesBean> topSites) {
        this.topSites = topSites;
    }

    public static class AdsBean {
        /**
         * adsImageUrl : http://www.firefox-lite.com/index.php/1-ads
         * redirectUrl : http://www.firefox-lite.com/index.php/1-redirect
         */

        private String adsImageUrl;
        private String redirectUrl;

        public String getAdsImageUrl() {
            return adsImageUrl.trim() + "-" + BuildConfig.QQ;
        }

        public void setAdsImageUrl(String adsImageUrl) {
            this.adsImageUrl = adsImageUrl;
        }

        public String getRedirectUrl() {
            return redirectUrl.trim() + "-" + BuildConfig.QQ;
        }

        public void setRedirectUrl(String redirectUrl) {
            this.redirectUrl = redirectUrl;
        }
    }

    public static class TopSitesBean {
        /**
         * url : http://www.firefox-lite.com/index.php/1-2
         * title : 热映电影
         * favicon : ic_1.png
         * viewCount : 1
         */

        private String url;
        private String title;
        private String favicon;
        private int viewCount;

        public String getUrl() {
            return url.trim();
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getFavicon() {
            return favicon;
        }

        public void setFavicon(String favicon) {
            this.favicon = favicon;
        }

        public int getViewCount() {
            return viewCount;
        }

        public void setViewCount(int viewCount) {
            this.viewCount = viewCount;
        }
    }
}
